#ifndef TDATABASEINFO_H
#define TDATABASEINFO_H
#include <QString>
#include <QDataStream>

class Info{
public:
    QString m_account;
    QString m_address;
    QString m_nickName;

    friend QDataStream& operator<<(QDataStream& out, const Info& users);
    friend QDataStream& operator>>(QDataStream& in, Info& users);
};

struct Message {
    QString sender;
    QString receiver;
    QString type;
    QString content;
    QString time;
};

class TDataBaseInfo
{
public:
    TDataBaseInfo(const QString& key);
    TDataBaseInfo(const TDataBaseInfo&);
private:
    QString m_key;
};

#endif // TDATABASEINFO_H
